joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472043
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x55010270
jl 0x47204f
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x472083
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720a6
push 0
call fcn.0042e525
pop ecx
mov ecx, eax
call fcn.00472043
mov dword [0x4d06e0], 0x55010270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f59f0fe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x55010634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720bb
mov eax, dword [esi]
mov dword [ebp - 4], 0x5e74018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f59f0fe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720f5
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f59f0fe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x47293b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call 0x7647278b
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call fcn.004727cf
xor esi, esi
test ebx, ebx
je 0x47297f
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call 0x5a37350f
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x47296a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040f0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00413be0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x498698]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x49869c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004040e0
mov ecx, dword [0x4986a0]
mov edx, dword [0x4986a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404160
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x49fe24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40418c
mov dword [0x49fe20], 0xedeb2e40
jmp 0x4041a7
cmp eax, 0x3eb
jne 0x4041a7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x49f8b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49fe24], 0x9e6
mov dword [0x49fe1c], 0xf4ea3dee
jne 0x4041e2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49fe24], 0x213
jne 0x404282
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, dword [ebp - 4]
cmp dword [0x49fe24], 0xc
jne 0x404296
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404160
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4042f0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413be0
mov eax, dword [0x49fe24]
mov ecx, dword [0x49f8b4]
shr eax, 3
test eax, eax
jbe 0x404410
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49fe24], 0x959
jne 0x4043f6
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004040f0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4975b0]
jne 0x4088c0
repz ret
jmp fcn.0040d1c5

Function at 0x40c9fe
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.004082c2
and dword [ebp - 4], 0
cmp dword [0x49d89c], 0
mov ebx, eax
jne 0x40caaf
push 0x40355c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cb60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403550
push edi
call esi
test eax, eax
je 0x40cb60
push eax
call fcn.00408250
mov dword [esp], 0x403540
push edi
mov dword [0x49d89c], eax
call esi
push eax
call fcn.00408250
mov dword [esp], 0x40352c
push edi
mov dword [0x49d8a0], eax
call esi
push eax
call fcn.00408250
mov dword [esp], 0x403510
push edi
mov dword [0x49d8a4], eax
call esi
push eax
call fcn.00408250
pop ecx
mov dword [0x49d8ac], eax
test eax, eax
je 0x40caaf
push 0x4034f8
push edi
call esi
push eax
call fcn.00408250
pop ecx
mov dword [0x49d8a8], eax
mov eax, dword [0x49d8a8]
cmp eax, ebx
je 0x40cb07
cmp dword [0x49d8ac], ebx
je 0x40cb07
push eax
call fcn.004082cb
push dword [0x49d8ac]
mov esi, eax
call fcn.004082cb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cb07
test edi, edi
je 0x40cb07
call esi
test eax, eax
je 0x40cafe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cafe
test byte [ebp - 0xc], 1
jne 0x40cb07
or dword [ebp + 0x10], 0x200000
jmp 0x40cb40
mov eax, dword [0x49d8a0]
cmp eax, ebx
je 0x40cb40
push eax
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb40
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb40
mov eax, dword [0x49d8a4]
cmp eax, ebx
je 0x40cb40
push eax
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb40
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d89c]
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cb62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cdf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x41ce12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ce19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ce08
mov eax, 1
add ebx, ebx
jne 0x41ce2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ce3c
jne 0x41ce5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ce5b
dec eax
add ebx, ebx
jne 0x41ce48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x41ce20
add ebx, ebx
jne 0x41ce57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x41cead
xor ecx, ecx
sub eax, 3
jb 0x41ce73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cee2
sar eax, 1
mov ebp, eax
jmp 0x41ce7e
add ebx, ebx
jne 0x41ce7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ce4c
inc ecx
add ebx, ebx
jne 0x41ce8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ce4c
add ebx, ebx
jne 0x41ce99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41ce8e
jne 0x41ceaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ce8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cecc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cebe
jmp 0x41ce0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cecc
add edi, ecx
jmp 0x41ce0e
pop esi
mov edi, esi
mov ecx, 0x626
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ceea
cmp byte [edi], 6
jne 0x41ceea
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 0x41ceef
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41cf5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2198c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cf1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x219f4]
or eax, eax
je 0x41cf58
mov dword [ebx], eax
add ebx, 4
jmp 0x41cf39
call dword [esi + 0x219fc]
mov ebp, dword [esi + 0x219f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x41cf92
sub esp, 0xffffff80
jmp 0x40dca8
Function at 0x43b63f
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
add edi, edi
add ecx, 0x37f013c2
call fcn.0043b674
or edi, edi
and edi, edi
mov edi, 0x6b03b6c7
xor dword [eax], edx
dec ecx
inc eax
mov ecx, edi
sub edi, edi
and edi, edi
cmp eax, ebx
jne fcn.0043b63f
add ecx, 0xe80b31d8
add edi, ecx
ret
Function at 0x405040
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x405078
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40506e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40507a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x405060
xor eax, eax
pop ebx
pop esi
ret
Function at 0x43fc18
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or dh, byte [esi + 0x35ef73c8]
xlatb
cmp dl, byte [edi - 0x58a6f633]
add dh, byte [ecx + 0x6a403b7]
nop
cmpsd dword [esi], dword es:[edi]
out dx, al
or esp, dword [ebp + 0x1d]
fld xword [esi + 0x15]
push 0xffffffffffffffa3
daa
cmc
pushal
pop esp
sub al, 0xbf
not dword [edi - 0x2fd4f179]
adc eax, 0xe1486124
inc esp
mov dword [0xe6b98e5e], eax
and eax, 0xd009c74b
mov ecx, esp
scasb al, byte es:[edi]
xchg edi, eax
add eax, 0x4c5f898f
or byte [edx + 0x4f19819c], 0x4f
dec ebp
shr dword [ecx + ebx*2], 0x1a
add eax, 0xe4764dd
mov esi, edx
add eax, 0x827373c2
ror dword [0x233a487d], 0xd0
xlatb
xchg edi, eax
pop ss
mov dword [0x9ca9029a], eax
dec edi
inc ebp
xor ebp, dword [eax]
adc ebx, dword [edi + 0x227b832]
aaa
dec edx
movsb byte es:[edi], byte [esi]
push cs
dec edx
and al, 0xdf
cmp dword [ecx + esi*4], ebx
test eax, 0x8341d420
mov edx, 0x3282ae87
pop ds
jl 0x43fc57
invalid
loopne 0x43fcba
add dword [edx - 0x6fc1da9f], 0xa76523ad
dec ebp
sbb dword [edi - 0x6d7cf593], ebx
scasd eax, dword es:[edi]
pause
nop
sahf
aaa
add eax, 0xe994e52a
adc eax, dword [edx]
push ebx
retf

Function at 0x4421b5
Capabilities:
Encode data using xor

Disassembly:
sbb dword ds:[eax], esi
dec ebp
outsb dx, byte [esi]
pushal
aam 0x8c
dec edx
popal
invalid

Function at 0x44d7b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
add byte [eax], al
cld
add bh, bh
jne 0x44d77e
sub dword [ecx], eax
jne 0x44d78e
call fcn.0044d7b0
add byte [eax], al
adc byte [ebx - 0x133ca21b], cl
add dword [ebx - 0x74aa3c3f], ecx
in al, dx
mov eax, dword [eax]
add byte [edx], ch
call 0x1ddd828
pop ebp
ret 4
mov esp, ebp
pop ebp
ret
arpl word [ecx], si
jnp 0x44d779
pop ebx
xor byte [esi], bh
dec edx
push ecx
adc al, 0x63
add byte [ecx - 0xc], dl
jns 0x44d827
mov al, byte [0xffc2a3f1]
aam 0x89
in al, 0xf2
shr ah, 1
xchg ebp, eax
out 0x14, al
wait

Function at 0x47f1c2
Capabilities:
Encode data using xor

Disassembly:
push ss
invalid
aam 0xea
test dword [ebp + 0x6e35475d], esi
cdq
in al, dx
retf 0x965a
cdq
xchg esi, eax
xchg dword [edx - 0x33], eax
xchg ebx, eax
cmp dword [ecx - 0x47], eax
std
jae 0x47f16f
cmp eax, 0x1cb7a9eb
adc ch, 0x7e
pop esi
ficomp dword [eax + 0xd3f89f7]
rcr byte [0xa30f2f98], cl
jb 0x47f19f
aaa
dec edx
pop ebp
enter 0x5689, 0x20
mov ch, 0x38
sbb byte [0x4f95a698], dh
test al, 0x85
hlt
Function at 0x47fc7f
Capabilities:
Encode data using xor

Disassembly:
aaa
add eax, 0xd761fba9
mov ecx, 0xaeb508bf
int1
adc byte [ecx + 0x7a78a545], 0x42
pop esi
popfd
int 0x2f
sub esi, 0xb1313acf
push esi
mov dh, 0x12
sub eax, 0x31b9dac9
sbb eax, 0xbdee6d7e
mov ah, 0xb5
push esp
push esp
fdivr dword [esi + 0x6d]
out dx, al
mov ebp, 0x5454b5b4
std
inc edx
fucomp st(2)
dec edx
sbb cl, bl
push ebp
scasd eax, dword es:[edi]
xchg bl, bl
sal bh, 1
mov ah, 0x34
aam 0xb5
and al, 0xde
out 0x6d, al
jle 0x47fcb1
pop ss
in al, dx
in eax, 0xe0
jle 0x47fc77
invalid
imul dword [edi - 0x3cfa872a]
pop ss
call 0x4a5db16
push edx
scasd eax, dword es:[edi]
salc
js 0x47fc89
ret
pop ebp
add al, 0x52
pop edi
jns 0x47fcb2
js 0x47fc32
lodsb al, byte [esi]
bswap edi
jns 0x47fc75
cmp eax, esi
movsd dword es:[edi], dword [esi]
jnp 0x47fd1a
or byte [esi - 0x17], 0xcc
mov dword [edi - 0xffa1b77], ebx
mov dh, 0xd5
cmp eax, 0x3e71fa97
invalid
fsubrp st(1)
movsd dword es:[edi], dword [esi]
loope 0x47fc59
cmp byte [ebp + 0x5821fad2], ch
jecxz 0x47fd0e
aam 0x23
invalid

Function at 0x627cf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303c0
cmp edx, dword [eax]
je 0x627d13
add eax, 8
inc ecx
cmp eax, 0x630450
jl 0x627d04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303c0]
jne 0x627e41
mov eax, dword [0x638d68]
cmp eax, 1
je 0x627e1b
test eax, eax
jne 0x627d44
cmp dword [0x6302e8], 1
je 0x627e1b
cmp edx, 0xfc
je 0x627e41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627dbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628b60
mov edi, eax
lea eax, [ebp + 8]
lea esi, [esi + 0x6303c4]
push 0
push eax
push dword [esi]
call fcn.00628b60
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]
Function at 0x4016a1
Capabilities:
Read file on windows

Disassembly:
push 0x414
mov eax, 0x41c6e7
call fcn.0041b8a8
and dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], edi
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [0x428020]
mov ecx, 0x428020
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x420664
push dword [ebp + 8]
mov dword [ebp - 0x41c], esi
call fcn.0040c1b9
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x418], ebx
test ebx, ebx
je 0x401796
push 2
push 0
push ebx
call fcn.0040c2a1
push ebx
call fcn.0040c4b1
push 0
push 0
push ebx
mov dword [ebp - 0x414], eax
call fcn.0040c2a1
add esp, 0x1c
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0040e690
mov ebx, 0x3ff
add esp, 0xc
cmp dword [ebp - 0x414], ebx
ja 0x401746
mov ebx, dword [ebp - 0x414]
push dword [ebp - 0x418]
lea eax, [ebp - 0x410]
push ebx
push esi
push eax
call fcn.0040c760
add esp, 0x10
cmp eax, ebx
jne 0x40178a
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40176a
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
mov eax, edi
call fcn.00402279
sub dword [ebp - 0x414], ebx
jne 0x40171d
push dword [ebp - 0x418]
call fcn.0040c7ea
pop ecx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
mov eax, edi
call fcn.0041b8f2
ret

Function at 0x4017a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 0x42066c
push dword [ebp + 8]
xor bl, bl
call fcn.0040c1b9
pop ecx
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x40180b
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax - 0xc]
mov dword [ebp - 4], eax
mov ebx, 0x3ff
mov esi, ebx
cmp edi, ebx
ja 0x4017df
mov esi, edi
push dword [ebp - 8]
push esi
push 1
push dword [ebp - 4]
call fcn.0040c9b5
add esp, 0x10
cmp eax, esi
jne 0x4017fb
add dword [ebp - 4], esi
sub edi, esi
jne 0x4017d7
push dword [ebp - 8]
test edi, edi
sete bl
call fcn.0040c7ea
pop ecx
pop edi
pop esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402daa
mov al, bl
pop ebx
leave
ret
Function at 0xfbf370
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 0xfbf38e
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 0xfe8074
push ecx
mov edi, eax
call fcn.00fd3198
mov esi, eax
add esp, 8
test esi, esi
jne 0xfbf3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00fd302e
push esi
call fcn.00fd2fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xfc2850
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 0xfc28ae
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 0xfed720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfc28ba
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.00fd31e1
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 0xfc28ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfed720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfc292a
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.00fd4082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xfc2957
mov word [eax], si
add eax, 2
push eax
call fcn.00fd4030
add esp, 4
jmp 0xfc2959
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 0xfc28ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xfc28b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xfc2ff0
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