joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cfe
Capabilities:
Delete directory
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.004094b0
cmp dword [0x2ac0018], 0x594
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
push edi
mov dword [ebp - 8], eax
jne 0x402d3b
push 0x402510
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x402564
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x44bc78]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x44bc7c]
xor esi, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402cf7
mov eax, dword [0x44bc80]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x44bc84]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2ac0018], 0xc
mov dword [ebp - 4], eax
jne 0x402dc0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2ac0018]
cmp eax, 0xfa9
jne 0x402ddc
mov dword [0x2abf5b4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402de9
mov dword [0x2abef68], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x2abf5b0], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2ac0018], 0x213
mov dword [ebp - 0x14], edx
jne 0x402e32
push esi
push 0x402570
push esi
push 0x402620
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2ac0018], 0xc
jne 0x402e6f
push esi
lea eax, [ebp - 0x82c]
push eax
push 0x4026f8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x102c]
push eax
push 0x402750
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + edx]
xor dword [ebp - 4], eax
mov edi, edx
shr edi, cl
add edi, dword [ebp - 0x24]
cmp dword [0x2ac0018], 0x121
jne 0x402ead
push 0x4026c4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edx, dword [ebp - 8]
xor dword [ebp - 4], edi
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.00402cf0
dec dword [ebp - 0x18]
jne 0x402d76
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
leave
ret 4
Function at 0x402ed3
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004094b0
mov eax, dword [0x2ac0018]
mov ecx, dword [0x2abef6c]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402fc8
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2ac0018], 0x959
jne 0x402fb6
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402778
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0x402828
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x4028b0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402900
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x402804
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x402968
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402cfe
add edi, 8
dec ebx
jne 0x402eff
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40326c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
cmp esi, 0x2710
jge 0x40329f
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
inc esi
cmp esi, 0x5d744c
jl 0x40327c
xor esi, esi
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jle 0x4032c2
cmp dword [ebp - 4], 0x785074d5
jne 0x4032cb
inc esi
cmp esi, 0x1c1b
jl 0x4032af
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x4032f1
inc esi
cmp esi, 0x4f6a4
jl 0x4032cd
cmp dword [0x2ac0018], 0x400
jne 0x403313
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
call fcn.00403384
push ebx
call fcn.004033fe
add esp, 0xc
mov eax, dword [0x44c04c]
mov dword [0x2ac0018], eax
mov eax, dword [0x44c020]
mov dword [0x2ac001c], eax
call fcn.00402fe5
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp esi, edi
jle 0x403342
cmp dword [ebp - 4], 0x785074d5
jne 0x40334b
inc esi
cmp esi, 0x11915
jl 0x40332e
mov esi, 0x3078f
cmp dword [0x2ac0018], 0x51f
jne 0x403366
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
dec esi
jne 0x403350
mov eax, dword [0x2abef6c]
mov dword [0x2abf5ac], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x40706c
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.004048d8
and dword [ebp - 4], 0
cmp dword [0x44c8e8], 0
mov ebx, eax
jne 0x40711d
push 0x4019d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4071ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019c8
push edi
call esi
test eax, eax
je 0x4071ce
push eax
call fcn.00404866
mov dword [esp], 0x4019b8
push edi
mov dword [0x44c8e8], eax
call esi
push eax
call fcn.00404866
mov dword [esp], 0x4019a4
push edi
mov dword [0x44c8ec], eax
call esi
push eax
call fcn.00404866
mov dword [esp], 0x401988
push edi
mov dword [0x44c8f0], eax
call esi
push eax
call fcn.00404866
pop ecx
mov dword [0x44c8f8], eax
test eax, eax
je 0x40711d
push 0x401970
push edi
call esi
push eax
call fcn.00404866
pop ecx
mov dword [0x44c8f4], eax
mov eax, dword [0x44c8f4]
cmp eax, ebx
je 0x407175
cmp dword [0x44c8f8], ebx
je 0x407175
push eax
call fcn.004048e1
push dword [0x44c8f8]
mov esi, eax
call fcn.004048e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407175
test edi, edi
je 0x407175
call esi
test eax, eax
je 0x40716c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40716c
test byte [ebp - 0xc], 1
jne 0x407175
or dword [ebp + 0x10], 0x200000
jmp 0x4071ae
mov eax, dword [0x44c8ec]
cmp eax, ebx
je 0x4071ae
push eax
call fcn.004048e1
pop ecx
test eax, eax
je 0x4071ae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4071ae
mov eax, dword [0x44c8f0]
cmp eax, ebx
je 0x4071ae
push eax
call fcn.004048e1
pop ecx
test eax, eax
je 0x4071ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c8e8]
call fcn.004048e1
pop ecx
test eax, eax
je 0x4071ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4071d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407985
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ba10]
jne 0x40798f
repz ret
jmp fcn.00409039
Function at 0x402efd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407318
cmp edx, dword [eax]
je 0x402f1f
add eax, 8
inc ecx
cmp eax, 0x4073a8
jl 0x402f10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407318]
jne 0x40304d
mov eax, dword [0x409ab8]
cmp eax, 1
je 0x403027
test eax, eax
jne 0x402f50
cmp dword [0x407088], 1
je 0x403027
cmp edx, 0xfc
je 0x40304d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402f87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403550
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401e20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402fca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401e20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406424
push edi
call fcn.00404c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403550
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403560
lea eax, [ebp - 0xa0]
push 0x406404
push eax
call fcn.00403560
push dword [esi + 0x40731c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403560
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404b7d
add esp, 0x2c
pop edi
jmp 0x40304d
lea eax, [ebp + 8]
lea esi, [esi + 0x40731c]
push 0
push eax
push dword [esi]
call fcn.00401e20
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 0x428c3b
Capabilities:
Encode data using xor

Disassembly:
retf
das
cmp al, 0x89
xchg esp, eax
lcall 0x91e4, 0x3a947702
inc ecx
cmp dword [ebx + ecx + 0x77b7922e], ecx
xchg edx, eax
mov bh, 0x77
inc eax
enter 0xffffffffffffbb30, 0x18
pop ss
invalid
cmp ebx, dword [edx]
jns 0x428bdb
aam 0xd4
dec eax
push edi
adc edi, esp
out 0x21, al
push cs
jecxz 0x428c16
jnp 0x428c1f
movsd dword es:[edi], dword [esi]
mov bl, byte [ebp - 0x57]
mov dl, 0x85
xchg esp, eax
jne 0x428b97
push esp
add byte [ecx + 0x54], 0xf9
sahf
dec ecx
jp 0x428bbb
frstor dword [edi + 0x21]
adc al, 0xab
cmp byte [ebx + 0x71], cl
xor dword [eax + 0x4bcb0b18], ebp
mov bl, 0x57
leave
push eax
xchg esp, eax
jne 0x428bd9
xor al, 0x51
sal esi, 0xf8
idiv al
or al, 0x7a
dec edx
xor al, dh
xchg esp, eax
rcl bh, 0xab
xlatb
stosd dword es:[edi], eax
test eax, 0xdc39dd18
ja 0x428bac
into
mov al, 0x9f
xchg ebp, eax
xchg dword [edx + ecx + 0x50772f27], ebp
pop eax
dec edx
adc dword [ecx + 0x62176ce8], ebx
pop ss
bound ecx, qword [ebx - 0x3c333737]
jae 0x428c9a
pop ss
bound ecx, qword [ebx - 0x3c333737]
jae 0x428c9a
push ds
jno 0x428be9
lahf
call 0xb8715be3
test dword [edi - 0x48], edi
mov cl, ah
fst dword [edx + esi*2]
push es
lds esp, [ebx]
sahf
ja 0x428c86
fld qword [eax + 0x67]
cdq
cmpsd dword [esi], dword es:[edi]
mov eax, dword [0xfa5867ff]
sti
dec edx
wait
xlatb
test byte [eax - 0x716e61af], 0xca
sahf
xchg ecx, eax
mov cs, edx
xlatb
popal
push 0x47
mov dword [esi + 0x3124a57e], 0x9c278e45
daa
pushfd
fidiv dword [edi]
cdq
pop ebx
xor dword [esi], ebx
sbb byte [esi], 0xb0
push ds
mov al, 0xd5
ret 0xf1e2
aad 0xc2
loop 0x428c7d
les ecx, [esi + 0x44]
jecxz 0x428c88
int1
push esp
jge 0x428c6c
dec edx
xor edx, esp
loop 0x428cf7
int3
in al, 0x1c
fstp qword [ecx]
mov ebx, edx
into
sbb eax, 0xef8b45f3
inc ecx
sub ecx, dword [ecx]
adc eax, 0x245eddd3
insb byte es:[edi], dx
xchg esi, eax
adc dl, byte [ecx + 0x76f03190]
add al, 0xe
cmp dword [0xb159202], 0x169d0f5
mov bh, 0xaa
dec eax
test edi, ecx
jns 0x428d98
ljmp 0x1a90:0x6b71de5a
and esp, edx
in al, 0x52
out dx, eax
stosb byte es:[edi], al
inc edi
inc ecx
push ss
iretd
insb byte es:[edi], dx
inc byte [ebp + ebx*8 - 0x6ccfa34e]
jbe 0x428dba
jbe 0x428dbf
cmc
invalid
movsb byte es:[edi], byte [esi]
loope 0x428d3e
out 0x75, al
sahf
and edx, dword [edx + 0x30]
jnp 0x428dfb
mov dword [esi + ecx - 0x60e539dc], ebp
int3
std
fdiv qword [edi + 0x26]
mov ebp, 0x903e74bb
iretd
sti
stc
sub al, byte [eax - 0x7dcff171]
jb 0x428dee
push esp
ficom dword cs:[ebp + 9]
iretd
Function at 0x431928
Capabilities:
Encode data using xor

Disassembly:
lahf
ja 0x431951
aaa
invalid
fcom qword [edi - 0x2c]
adc dword [ecx - 0x6b], ebx
sahf
jge 0x4318f0
push ecx
push eax
pop ebp
push cs
push 0xffffffffffffffa8
jne 0x4318e2
sbb al, 0x95
dec edi
cli
movsd dword es:[edi], dword es:[esi]
add dword [eax], eax
mov edx, 0x788716bb
jl 0x4318f5
push ss
xchg dword [eax + 0x7c], edi
mov bl, 0x16
push ss
jecxz 0x431999
aaa
and ah, byte [eax]
dec ebx
in eax, dx
jmp 0xeab2d887
sar dl, cl
inc esi
pop ds
jecxz 0x431937
outsb dx, byte [esi]
fidiv word [edx + 0x28]
xchg esi, eax
mov fs, word [eax]
jnp 0x43193d
jge 0x431a04
ja 0x4319ed
mov dh, 0xef
js 0x431a1c
add cl, byte [edi]
mov esp, 0xc1994774
aas
xor edx, ebp
mov esi, 0xb2de7d61
dec edx
dec ebx
retf 0x85f2
or ch, cl
inc edx
sbb al, 0xbd
invalid
push es
and eax, 0x9c196b5f
wait
arpl word [eax - 0x4af5251a], si
sub byte [0x4050a44e], al
retf 0xd547
in eax, dx
mov dword [0xf0ffba1f], eax
cmp eax, 0x3d695954
push 0xfffffffffffffff7
sub edx, esp
clc
out dx, eax
invalid
mov edx, 0x543df0ff
pop ecx
imul edi, dword [0xe229f76a], 0x65feeff8
lds ebp, [edi]
pop ebx
push ebx
int 0x6d
insd dword es:[edi], dx
push es
sub ch, cl
cmpsb byte [esi], byte es:[edi]
dec edx
inc ebx
cmp eax, 0xd40b74fa
in eax, 0x9b
pushfd
rcl byte [ebx - 0x37deee7e], cl
aam 0xcb
jb 0x431a20
mov es, esp
or esp, dword [eax]
imul edx, dword [ecx + 0x2de815d4], 0xffffffa0
jge 0x431a07
mov eax, 0x97d7a6ab
push edx
mov dl, 0xb
loopne 0x4319d4
shl dword [edi + 0x206dc1f2], 1
pushal
scasd eax, dword es:[edi]
inc esi
movsb byte es:[edi], byte [esi]
mov eax, 0xabf8bf5d
arpl word [edi], si
lcall 0xec6, 0x5ba04273
scasb al, byte es:[edi]
jae 0x431aa3
mov al, byte [0xae0ec65b]
push 0xffffffffffffff92
jle 0x431a5f
cmp ecx, edi
fld xword [ecx + 0x78]
mov ebp, eax
mov byte [0xc602cb7], ah
pop ss
test byte [edx + 0x14b3bbe0], ch
cmp ecx, dword [edx + eax*8 - 0x22]
mov dword [edx - 8], edx
push 2
cmpsb byte [esi], byte es:[edi]
add byte [ebx + 0x2ecbc3b4], bl
sti
scasd eax, dword es:[edi]
idiv byte [esp + ecx - 0x2c]
sub byte [ebx], cl
adc eax, dword [edi - 0x60]
push 0x8bdb2efe
lodsb al, byte [esi]
hlt
ret 0xc1fe
Function at 0x43aa23
Capabilities:
Authenticate hmac

Disassembly:
dec esi
cwde
clc
sbb byte [edx + 0x7a2358de], bh
pop ebp
mov ecx, 0x9da63a5e
mov ah, 0x58
push ecx
std
mov edi, dword [eax + 1]
sub byte [esi], bh
jo 0x43aa75
insd dword es:[edi], dx
pop edx
test eax, 0xf2b17baa
ja 0x43aabd
scasb al, byte es:[edi]
scasb al, byte es:[edi]
push esi
push esi
in eax, dx
dec edx
insd dword es:[edi], dx
cli
inc eax
mov ecx, 0x1986f6b0
sti
add byte [edi - 0x3f], dh
outsb dx, byte [esi]
and al, 0x70
shl byte [esi - 0x14], 0x73
adc byte [esi + edi*2 - 0x4a], dh
ja 0x43aad9
sbb al, 0xee
fdivr dword [ebp + 0x59]
adc byte [edi], cl
pop edi
sub dword [eax - 0x34], edi
mov dh, 0x23
iretd
push ds
cli
ret
jmp 0x43aadb
test eax, 0x473e7de7
invalid
and eax, ecx
jae 0x43ab4b
pop ebp
sbb dword [ecx - 0x17], 0x9c14d9fe
adc al, 0x9c
jae 0x43ab22
sbb eax, 0x21bb2520
stc
xor eax, 0xe7ab0b04
jmp 0x43aae3
stosd dword es:[edi], eax
out 0xeb, eax
out dx, eax
sbb dword [eax + 0x2a], esi
push ds
sub dword [edx + edi], eax
mov dword [ecx], ebx
ja 0x43aaad
jecxz 0x43ab41
sahf
rol byte [edi], 1
dec edi
pop ebp
ljmp 0xc01b
mov ecx, 0x199a7442
invalid
or al, 0xbc
inc edi
pop ss
cvtps2pd xmm5, qword [edx - 0x16]
popfd
jae 0x43ab9f
xchg eax, edi
adc esp, edx
ror byte [ecx], 1
lahf
jge 0x43aaf0
cwde
hlt
xchg eax, ecx
fild word [0xb47be293]
pop esp
fcmovnb st(0), st(4)
add cl, byte [edx + 0x3af89ddc]
sti
mov ebx, dword [edx + eax + 0xca3b20e]
cli
adc byte [0xbdd79465], 0xda
cwde
and dword [eax + 0x64338cd3], ecx
or cl, dl
mov bl, dl
invalid
xor esp, dword [edx + ecx - 0x36]
jae 0x43abcf
mov edx, 0xd7633087
fsub qword [ebx - 0x3a]
adc ah, al
lahf
cmp edx, dword [ebx - 0xdb07d68]
je 0x43ab79
in eax, dx
cmp ch, byte [0x847e8e7b]
adc byte [ecx + 0x52], cl
inc esp
rcl dword [ebx]
jp 0x43ab9c
cmpsd dword [esi], dword es:[edi]
pop edx
mov ah, 0x5c
jns 0x43abc2
sbb byte [ecx + 0x46ca1eac], 0xcf
jnp 0x43abf3
lodsb al, byte [esi]
push ds
retf 0xcf46
dec esp
lahf
push dword [edi + ecx*8 - 0x625c808d]
rcr ebx, 8
ja 0x43ac37
ja 0x43abfb
xchg byte [edx - 0x242baab1], ch
dec edi
push ebp
aam 0xdb
sbb bl, byte [edi]
jl 0x43ac10
int3
push ebx
mov al, 0xaf
sbb eax, 0x3acaf8ca
push 0xffffffffffffff82
cmp ch, byte [edx - 0x7e]
fldenv [ebx]
cmp al, 0x36
invalid
invalid
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x4058
call fcn.00401508
mov ebx, 0xffffffff
sub esp, eax
mov eax, dword [esp + eax]
lea esi, [esp + 0x50]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x2000
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp], 4
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
test eax, eax
cmovns ebx, eax
call edi
sub esp, 4
lea ebp, [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4010a0
mov edx, dword [esp + 0x4c]
add esp, 0x405c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0x34], eax
call eax
sub esp, 0x20
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
je 0x401091
mov ecx, dword [esp + 0x3c]
call ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 0x20
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40108d
Function at 0x4012c0
Capabilities:
Get hostname

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x4c
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
cmp esi, 1
jle 0x401360
mov dword [esp + 8], 2
mov dword [esp + 4], 0x403006
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
je 0x401333
mov edx, 1
mov eax, dword [ebx + edx*4]
cmp word [eax], 0x2d
jne 0x4013c0
movzx eax, word [eax + 2]
cmp ax, 0x3f
je 0x401333
cmp ax, 0x73
je 0x401350
mov dword [esp + 4], eax
mov dword [esp], 0x66
call fcn.004011d0
mov eax, 0x65
call fcn.00401260
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add edx, 1
cmp edx, esi
jne 0x401306
lea esi, [esi]
nop
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x10
lea ebx, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x4013a0
mov dword [esp + 4], ebx
mov dword [esp], 0x40300c
call fcn.00401240
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], 0x67
mov dword [esp + 4], eax
call fcn.004011d0
jmp 0x40133d
mov eax, 0x68
call fcn.00401260
mov eax, 0x65
call fcn.00401260
jmp 0x40133d

Function at 0x401460
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4014d0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004012c0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x406f0c
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.0040476c
and dword [ebp - 4], 0
cmp dword [0x4278e8], 0
mov ebx, eax
jne 0x406fbd
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40706e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x40706e
push eax
call fcn.004046fa
mov dword [esp], 0x4019a8
push edi
mov dword [0x4278e8], eax
call esi
push eax
call fcn.004046fa
mov dword [esp], 0x401994
push edi
mov dword [0x4278ec], eax
call esi
push eax
call fcn.004046fa
mov dword [esp], 0x401978
push edi
mov dword [0x4278f0], eax
call esi
push eax
call fcn.004046fa
pop ecx
mov dword [0x4278f8], eax
test eax, eax
je 0x406fbd
push 0x401960
push edi
call esi
push eax
call fcn.004046fa
pop ecx
mov dword [0x4278f4], eax
mov eax, dword [0x4278f4]
cmp eax, ebx
je 0x407015
cmp dword [0x4278f8], ebx
je 0x407015
push eax
call fcn.00404775
push dword [0x4278f8]
mov esi, eax
call fcn.00404775
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407015
test edi, edi
je 0x407015
call esi
test eax, eax
je 0x40700c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40700c
test byte [ebp - 0xc], 1
jne 0x407015
or dword [ebp + 0x10], 0x200000
jmp 0x40704e
mov eax, dword [0x4278ec]
cmp eax, ebx
je 0x40704e
push eax
call fcn.00404775
pop ecx
test eax, eax
je 0x40704e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40704e
mov eax, dword [0x4278f0]
cmp eax, ebx
je 0x40704e
push eax
call fcn.00404775
pop ecx
test eax, eax
je 0x40704e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4278e8]
call fcn.00404775
pop ecx
test eax, eax
je 0x40706e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407070
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407825
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426a10]
jne 0x40782f
repz ret
jmp fcn.00408ed9

Function at 0x40890e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.0040892d
or edi, edi
xor dword [edx], eax
sub edi, ebx
and edi, ebx
add edx, 1
dec ebx
cmp edx, esi
jne fcn.0040890e
ret