joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452ae0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404490
xor eax, eax
push ebp
push 0x452bdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x409
call fcn.00452a74
mov eax, dword [ebp - 4]
call fcn.004042a0
mov esi, eax
test esi, esi
jle 0x452bc5
mov edi, 1
mov eax, dword [ebp - 4]
mov bl, byte [eax + edi - 1]
mov eax, ebx
add al, 0xbf
sub al, 0x1a
jae 0x452b7c
push 0
push 0
push 0
push 0x10
call sub.user32.dll_keybd_event
push 0
push 0
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
push 0
push 2
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x10
call sub.user32.dll_keybd_event
jmp 0x452b93
push 0
push 0
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
push 0
push 2
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
mov eax, dword [0x45507c]
mov eax, dword [eax]
call fcn.0044f670
push 0x32
call sub.kernel32.dll_Sleep_1
inc edi
dec esi
jne 0x452b23
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452be2
lea eax, [ebp - 4]
call fcn.00403fd0
ret
Function at 0x1000d2e0
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x1006f7e0
Capabilities:
Authenticate hmac
Get number of processors

Disassembly:
inc ecx
inc ebx
xor byte [esi + 0x30], al
aaa
xor al, 0x45
xor al, 0x31
xor byte [eax], dh
jge 0x1006f84a
push eax
inc esp
inc esi
inc esi
imul ebp, dword [ebp + 0x5f], 0x63692e38
outsd dx, dword [esi]
sub al, 0x30
and al, 4
add byte [eax + 0x4c43006a], al
push ebx
dec ecx
inc esp
pop esp
jnp 0x1006f83d
xor al, 0x44
inc ecx
xor byte [edi + esi], dh
inc edx
sub eax, 0x30433034
sub eax, 0x38313034
sub eax, 0x42313438
sub eax, 0x34374236
xor byte [ecx], bh
inc esi
aaa
xor esi, dword [eax]
inc esi
inc ebx
jge 0x1006f88c
dec ecx
insd dword es:[edi], dx
jo fcn.1006f8a0
insd dword es:[edi], dx
outsb dx, byte gs:[esi]
je 0x1006f89f
and byte fs:[ebx + 0x61], al
popal
je 0x1006f8a5
outsd dx, dword [si]
jb 0x1006f8ad
jae 0x1006f8a3
jnp 0x1006f880
inc esp
inc esp
cmp dword [0x2d313038], esi
sub eax, 0x32383839
cmp byte [eax], bh
cmp dword [edx + 0x44], eax
inc ebx
xor byte cs:[eax + ecx*2 + 0x45], bl

Function at 0x1006f850
Capabilities:
Authenticate hmac
Get number of processors

Disassembly:
sub eax, 0x32383839
sub eax, 0x46433131
sub eax, 0x39414639
sub eax, 0x41413030
xor byte [eax], dh
inc ebx
xor al, 0x32
inc ebx
xor al, 0x7d
add byte [eax + 0x4000], al
add byte [eax], al
and eax, 0x42400
cmp byte [edx], 0
push esp
jns 0x1006f8f0
dec esp
imul esp, dword [edx + 0x5c], 0x3731347b
xor edi, dword [eax]
inc ebp
inc ebp
inc ecx
sub eax, 0x46323434
sub eax, 0x46373734
sub eax, 0x46433239
sub eax, 0x39383832
cmp byte [ecx], bh
cmp dword [ebx], esi
xor byte [edi*2 + 0x302e315c], dh
pop esp
dec eax
inc ebp
Function at 0x6adcaa22
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6b701014]
mov dword [ebp - 0xc], eax
jmp 0x6adcab1e
jmp 0x6adcac0c
jmp 0x6adcacfa
jmp 0x6adcade8
jmp 0x6adcaed6
jmp 0x6adcafc4
jmp 0x6adcb0b2
jmp 0x6adcb1a0
jmp 0x6adcb28e
jmp 0x6adcb37c
jmp 0x6adcb46a
jmp 0x6adcb558
jmp 0x6adcb646
jmp 0x6adcb734
jmp 0x6adcb822
jmp 0x6adcb910
jmp 0x6adcb9fe
jmp 0x6adcbaec
jmp 0x6adcbbda
jmp 0x6adcbcc8
cmp dword [ebp - 0xc], 0
je 0x6add0784
mov eax, dword [0x6b701014]
mov dword [0x6b70100c], eax
jmp 0x6adcbdca
jmp 0x6adcbeb8
jmp 0x6adcbfa6
jmp 0x6adcc094
jmp 0x6adcc182
jmp 0x6adcc270
jmp 0x6adcc35e
jmp 0x6adcc44c
jmp 0x6adcc53a
jmp 0x6adcc628
jmp 0x6adcc716
jmp 0x6adcc804
jmp 0x6adcc8f2
jmp 0x6adcc9e0
jmp 0x6adccace
jmp 0x6adccbbc
jmp 0x6adcccaa
jmp 0x6adccd98
jmp 0x6adcce86
jmp 0x6adccf74
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x6b701008], eax
jmp 0x6adcd072
jmp 0x6adcd160
jmp 0x6adcd24e
jmp 0x6adcd33c
jmp 0x6adcd42a
jmp 0x6adcd518
jmp 0x6adcd606
jmp 0x6adcd6f4
jmp 0x6adcd7e2
jmp 0x6adcd8d0
jmp 0x6adcd9be
jmp 0x6adcdaac
jmp 0x6adcdb9a
jmp 0x6adcdc88
jmp 0x6adcdd76
jmp 0x6adcde64
jmp 0x6adcdf52
jmp 0x6adce040
jmp 0x6adce12e
jmp 0x6adce21c
mov eax, dword [0x6b701008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x6adce315
jmp 0x6adce403
jmp 0x6adce4f1
jmp 0x6adce5df
jmp 0x6adce6cd
jmp 0x6adce7bb
jmp 0x6adce8a9
jmp 0x6adce997
jmp 0x6adcea85
jmp 0x6adceb73
jmp 0x6adcec61
jmp 0x6adced4f
jmp 0x6adcee3d
jmp 0x6adcef2b
jmp 0x6adcf019
jmp 0x6adcf107
jmp 0x6adcf1f5
jmp 0x6adcf2e3
jmp 0x6adcf3d1
jmp 0x6adcf4bf
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6b701004], eax
jmp 0x6adcf5da
jmp 0x6adcf6c8
jmp 0x6adcf7b6
jmp 0x6adcf8a4
jmp 0x6adcf992
jmp 0x6adcfa80
jmp 0x6adcfb6e
jmp 0x6adcfc5c
jmp 0x6adcfd4a
jmp 0x6adcfe38
jmp 0x6adcff26
jmp 0x6add0014
jmp 0x6add0102
jmp 0x6add01f0
jmp 0x6add02de
jmp 0x6add03cc
jmp 0x6add04ba
jmp 0x6add05a8
jmp 0x6add0696
jmp 0x6add0784
nop
leave
ret

Function at 0x6ae120a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6b700040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6ae12100
Function at 0x6ae12100
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6b701378]
test esi, esi
jle 0x6ae121ed
mov edi, dword [0x6b70137c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6ae12134
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6ae121e6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6ae12120
mov dword [esp], eax
mov esi, eax
call fcn.6ae128a0
test eax, eax
mov edi, eax
je 0x6ae1222a
mov esi, dword [0x6b70137c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6ae129b0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6b70137c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6ae1220a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6ae121df
sub eax, 0x40
and eax, 0xffffffbf
je 0x6ae121df
mov eax, dword [esp + 0x20]
add ebx, dword [0x6b70137c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6ae121f4
add dword [0x6b701378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6ae1213e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6ae120a0
mov eax, dword [0x6b70137c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6ae120a0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6ae120a0
lea esi, [esi]

Function at 0x6ae12510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6b701388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6b701380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6ae12565
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6ae1255e
test esi, esi
je 0x6ae1255e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ae12540
mov dword [esp], 0x6b701388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404c16
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x404c96
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x404c95
push ebx
mov ebx, 0x4aa728
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x420548
mov byte [edi + esi], al
call fcn.0040daae
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x404c38
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404793
pop edi
pop ebp
ret 0x14

Function at 0x407b83
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 0x407ba4
jl 0x407b9b
test edi, edi
jne 0x407ba4
xor eax, eax
xor edx, edx
jmp 0x407c65
cmp dword [ebx + 0x38], 0
je 0x407bb9
push eax
push edi
push dword [ebp + 8]
call fcn.00407c6b
jmp 0x407c65
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407c00
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407c00
cmp eax, edi
jb 0x407bda
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004093c0
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 0x407c06
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407c5a
mov ecx, ebx
call fcn.0040741d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407c45
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040f0c3
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 0x407c5a
jmp 0x407c18
test edx, edx
je 0x407c5a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040f0c3
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 0x408f18
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4237b8
push 0x4237b0
push str.FlsAlloc
push 0x1e
call fcn.00413979
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413b40
push dword [ebp + 8]
mov ecx, esi
call dword [0x420174]
call esi
jmp 0x413b46
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413b8a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4237c8
push 0x4237c0
push str.FlsGetValue
push 0x20
call fcn.00413979
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413bc1
push dword [ebp + 8]
mov ecx, esi
call dword [0x420174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4161bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041602c

Function at 0x4165b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409370
mov eax, dword [0x4a8b40]
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.004141be
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4165f7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416753
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f060
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 + 0x4ab0e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417354
mov ecx, dword [esi*4 + 0x4ab0e0]
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 0x41674c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41674c
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 0x41674c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417354
add esp, 0x14
test edx, edx
jl 0x41674c
jg 0x4166c2
test eax, eax
jb 0x41674c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41674c
jl 0x4166dc
cmp dword [ebp - 0x1008], eax
ja 0x41674c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4166fa
test ebx, ebx
je 0x416733
cmp ecx, edi
jae 0x416733
mov al, byte [ecx]
cmp al, 0xd
jne 0x416714
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416720
cmp byte [ecx + 1], 0xa
jne 0x416720
inc ecx
jmp 0x416720
movzx eax, al
movsx eax, byte [eax + 0x4a8e10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4166fa
cmp edx, ebx
jne 0x4166fa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416751
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408791
leave
ret
Function at 0x4167f2
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 + 0x4ab0e0]
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 0x416832
cmp byte [ebx], 0xa
jne 0x416832
or byte [eax + edi + 0x28], 4
jmp 0x416837
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416935
mov al, byte [edx]
cmp al, 0x1a
je 0x416917
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416866
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41688b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416895
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 0x416848
jmp 0x416935
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 0x416912
cmp dword [ebp - 0xc], 0
je 0x416912
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ab0e0]
test byte [eax + edi + 0x28], 0x48
je 0x4168ec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4168d7
mov byte [esi], dl
jmp 0x4168e8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ab0e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416935
cmp byte [ebp - 1], 0xa
jne 0x4168fb
cmp esi, ebx
jne 0x4168fb
mov byte [esi], 0xa
jmp 0x416934
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417372
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416935
mov byte [esi], 0xd
jmp 0x416934
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ab0e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416931
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416935
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41693e
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 + 0x4ab0e0]
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 0x416981
cmp word [esi], dx
jne 0x416981
or byte [edi + eax + 0x28], 4
jmp 0x416986
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 0x416ad9
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 0x416ab9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4169c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4169fe
cmp eax, edx
jae 0x416a0a
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 0x4169a0
jmp 0x416ad9
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 0x416ab5
cmp dword [ebp - 0x14], 0
je 0x416ab5
mov eax, dword [ebx*4 + 0x4ab0e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416a8d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416a56
mov word [esi], cx
jmp 0x416a89
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ab0e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ab0e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ab0e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416ad9
pop ebx
cmp word [ebp - 4], bx
jne 0x416a9e
cmp esi, dword [ebp + 0xc]
jne 0x416a9e
mov word [esi], bx
jmp 0x416ad6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417372
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416ad9
push 0xd
jmp 0x416ad2
mov ecx, dword [ebx*4 + 0x4ab0e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416ad9
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 0x41928b
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 0x419328
push ebx
push esi
call fcn.00419254
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.00418035
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4192d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419327
push edi
push eax
call fcn.00413e93
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4192f5
call fcn.0041314b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419326
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418035
add esp, 0x20
test eax, eax
jne 0x419314
push edi
call fcn.0041314b
jmp 0x41931c
push ebx
call fcn.0041314b
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 0x41f020
Capabilities:
Parse pe header

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