joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e9c4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x438ea7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e933
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e94c
lea eax, [ebp - 0x10]
mov edx, dword [0x450250]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e95f
lea eax, [ebp - 0x10]
mov edx, dword [0x450250]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e96b
adc edx, 0
mov edx, dword [edx*4 + 0x44f0dc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea79
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d44
test eax, eax
je 0x41ea6c
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea6c
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d44
test eax, eax
je 0x41ea6c
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea6c
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea6c
cmp dx, 0x150
ja 0x41ea6c
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d44
test eax, eax
je 0x41ea6c
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea6c
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea91
inc ebx
cmp ebx, 0x19
jne 0x41e925
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438eae
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x41edcc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00406d9c
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00406d44
test eax, eax
je 0x41ee69
cmp word [esi], 0x5a4d
jne 0x41ee69
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00406d9c
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00406d44
test eax, eax
je 0x41ee69
cmp dword [ebp - 0x1c], 0x4550
jne 0x41ee69
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.00406e80
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41ee69
cmp ax, 0x150
ja 0x41ee69
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00406d44
test eax, eax
je 0x41ee69
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
cmp ecx, dword [0x45507c]
jne 0x401cdf
repz ret
jmp fcn.00402a42

Function at 0x4083ba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405dcd
and dword [ebp - 0x14], 0
cmp dword [0x457e68], 0
mov dword [ebp - 0x18], eax
jne 0x40846d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408515
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408515
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x457e68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x457e6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x457e70], eax
call edi
push eax
call esi
mov dword [0x457e78], eax
test eax, eax
je 0x40846d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x457e74], eax
mov eax, dword [0x457e74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4084c6
cmp dword [0x457e78], ecx
je 0x4084c6
push eax
call esi
push dword [0x457e78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4084c6
test ebx, ebx
je 0x4084c6
call edi
test eax, eax
je 0x4084bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4084bd
test byte [ebp - 8], 1
jne 0x4084c6
or dword [ebp + 0x10], 0x200000
jmp 0x4084f9
mov eax, dword [0x457e6c]
cmp eax, dword [ebp - 0x18]
je 0x4084f9
push eax
call esi
test eax, eax
je 0x4084f9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4084f9
mov eax, dword [0x457e70]
cmp eax, dword [ebp - 0x18]
je 0x4084f9
push eax
call esi
test eax, eax
je 0x4084f9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x457e68]
call esi
test eax, eax
je 0x408515
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408517
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret
Function at 0x401b30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x401b7b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x401b6b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401b51
jmp 0x401b70
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x401bcb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401b90
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401b90
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x401bac
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004029c0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401bed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401c60
mov esi, dword [ebx]
cmp esi, ebx
je 0x401c60
test esi, esi
je 0x401c60
cmp word [esi + 0x24], 2
jbe 0x401c5a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401c5a
cmp dword [esi + 0x18], 0
je 0x401c5a
test ebp, ebp
je 0x401c15
cmp ebp, eax
jne 0x401c5a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004029c0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401c3a
cmp eax, dword [esi + 0x18]
jne 0x401c5a
cmp dword [esp + 0x10], 0
je 0x401c6d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x401c6d
mov esi, dword [esi]
cmp esi, ebx
jne 0x401bf3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x402250
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x402278
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x402286
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40229f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4022ad
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x4022c6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x4022d4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x4022ed
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x4022fb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x402342
add dword [esp], 5
retf
Function at 0x4023d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x824208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40257d
cmp dword [0x82420c], 0
jne 0x402569
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402990
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402420
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + str.w.y]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x402430
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41b0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402465
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402990
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4024c4
sub edx, esi
sar edx, 1
je 0x40257d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4024e0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40257d
xor eax, eax
push ebx
test edx, edx
je 0x402518
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402518
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402501
xor eax, eax
test edx, edx
je 0x402532
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402532
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402520
xor eax, eax
test edx, edx
je 0x40254f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40254f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402540
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x824208]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402860
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x824348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x402989
cmp dword fs:[0xc0], eax
je 0x40288b
mov dword [0x824344], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x82422c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x824230], eax
movzx edx, word [esi + 0xac]
mov dword [0x824234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x824238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x4028eb
push 0x7f
push eax
push 0x82423c
call fcn.004029c0
mov edx, dword [0x824234]
add esp, 0xc
jmp 0x4028f3
xor eax, eax
mov word [0x82423c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x82433c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x82433e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x824340], ax
mov ecx, eax
mov byte [0x824342], 0
cmp byte [0x7ffe0268], 0
je 0x40293a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x824342], bl
cmp ebx, 1
pop ebx
jne 0x402954
and ecx, 0xffef
mov word [0x824340], cx
test edx, edx
jne 0x402989
call fcn.00402860
cmp dword [0x82422c], 6
ja 0x402989
jb 0x402971
cmp dword [0x824230], 4
jae 0x402989
call fcn.00402860
cmp dword [0x82422c], 0xa
jae 0x402989
mov dword [0x824234], 1
ret
Function at 0x4040b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40410b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4040d0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x4040ec
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004029c0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40412d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40419f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40419f
test esi, esi
je 0x40419f
cmp word [esi + 0x24], 2
jbe 0x404199
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x404199
cmp dword [esi + 0x18], 0
je 0x404199
test ebp, ebp
je 0x404155
cmp ebp, eax
jne 0x404199
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004029c0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40417a
cmp edx, dword [esi + 0x18]
jne 0x404199
cmp dword [esp + 0x14], eax
je 0x4041ac
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x4041ac
mov esi, dword [esi]
cmp esi, ebx
jne 0x404133
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret

Function at 0x404210
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x825274]
sub esp, 0x11c
test eax, eax
jne 0x40430e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00402990
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x404260
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x404270
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41b104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x4042a5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004040b0
pop edi
pop esi
pop ebx
test eax, eax
je 0x404309
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404309
mov dword [0x825274], eax
add esp, 0x11c
ret
mov eax, dword [0x825274]
add esp, 0x11c
ret
Function at 0x41a8e2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
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.00401548
mov ecx, 0x2000
xor ebx, ebx
sub esp, eax
mov eax, dword [esp + eax]
lea esi, [esp + 0x50]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov ebx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp], 4
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
mov ebp, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
test eax, eax
cmovns ebx, eax
xor edi, edi
call ebp
sub esp, 4
mov dword [esp + 0x10], edi
lea edi, [esp + 0x4c]
mov dword [esp + 0xc], edi
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 dword [esp + 0x30], eax
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x3c], ecx
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x34], eax
call eax
mov ecx, dword fs:[0x18]
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 0x38], ecx
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x30]
je 0x40108c
mov ecx, dword [esp + 0x3c]
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 8], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
xor esi, esi
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebp
sub esp, 4
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x2c]
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 dword [esp + 8], edi
mov ecx, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 4], edi
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 0x401088
Function at 0x4012e0
Capabilities:
Get hostname

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], esi
mov esi, dword [ecx]
mov dword [ebp - 8], ebx
mov ebx, dword [ecx + 4]
mov dword [ebp - 0xc], ecx
cmp esi, 1
jle 0x4013b0
mov eax, 2
mov edx, 0x403006
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
je 0x401382
mov edx, 1
mov eax, dword [ebx + edx*4]
cmp word [eax], 0x2d
jne 0x401378
movzx eax, word [eax + 2]
cmp eax, 0x3f
je 0x401382
cmp eax, 0x73
je 0x4013a8
mov dword [esp + 4], eax
mov dword [esp], 0x66
call sym._hostname_message_printfW
mov eax, 0x65
call sym._hostname_message
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
mov eax, 0x68
call sym._hostname_message
mov eax, 0x65
call sym._hostname_message
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
inc edx
cmp edx, esi
jne 0x40132e
lea esi, [esi]
mov dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x38]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x4013f8
mov dword [esp + 4], ebx
mov dword [esp], 0x40300c
call sym._hostname_printfW
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
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 sym._hostname_message_printfW
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4014a0
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 sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__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 dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0xcb6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cb61a8
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 0xcb607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcb606a
add dl, dl
jne 0xcb6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcb60dc
xor eax, eax
add dl, dl
jne 0xcb6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcb617d
add dl, dl
jne 0xcb60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcb60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcb60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcb60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcb60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcb6075
mov eax, 1
add dl, dl
jne 0xcb60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcb60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcb60e1
sub eax, ebx
mov ebx, 1
jne 0xcb6128
mov ecx, 1
add dl, dl
jne 0xcb610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcb6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcb6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcb6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcb613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcb614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcb6136
cmp eax, 0x7d00
jae 0xcb616d
cmp eax, 0x500
jb 0xcb6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcb6075
cmp eax, 0x7f
ja 0xcb6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcb6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcb619e
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 0xcb6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10