joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b5e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49d094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0047270e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0047270e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x47b657
cmp word [ecx], dx
je 0x47b657
mov eax, dword [0x492f94]
push edi
dec eax
push eax
push 0x492e80
call fcn.0047b57f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47b6ca
cmp word [eax], dx
je 0x47b6ca
mov eax, dword [edi]
test eax, eax
je 0x47b67b
cmp word [eax], dx
je 0x47b67b
lea eax, [ebp - 0x10]
push eax
call fcn.0047af62
jmp 0x47b684
lea eax, [ebp - 0x10]
push eax
call fcn.0047affd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47b6f4
mov eax, dword [0x492e7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x492b70
call fcn.0047b57f
add esp, 0xc
test al, al
je 0x47b6f4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x47b6bf
cmp word [eax], di
je 0x47b6bf
lea eax, [ebp - 0x10]
push eax
call fcn.0047af62
pop ecx
jmp 0x47b6f6
lea eax, [ebp - 0x10]
push eax
call fcn.0047affd
jmp 0x47b6bc
mov eax, dword [edi]
test eax, eax
je 0x47b6e1
cmp word [eax], dx
je 0x47b6e1
lea eax, [ebp - 0x10]
push eax
call fcn.0047af17
pop ecx
jmp 0x47b6f4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x47b7bf
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047b404
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47b7bf
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x47b7bf
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x47b7bf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47b74c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0047310d
test ebx, ebx
je 0x47b7ba
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0047310d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b7bf
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b7bf
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0047ec57
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47b7c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004582a0
leave
ret
Function at 0x47be28
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0047bda4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x47bf97
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x47bf97
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47bf4c
jg 0x47be84
test eax, eax
je 0x47bf42
push 1
push 0x1000
call fcn.004722eb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47bea7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47bf39
push 0x8000
push ebx
call fcn.0046df6b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47bed0
jg 0x47becb
cmp ecx, 0x1000
jb 0x47bed0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004712bb
add esp, 0x10
cmp eax, 0xffffffff
je 0x47bf15
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x47becb
jl 0x47befc
test ecx, ecx
jne 0x47bebd
push dword [ebp - 0xc]
push ebx
call fcn.0046df6b
push esi
call fcn.00472348
add esp, 0xc
xor ebx, ebx
jmp 0x47bfa5
cmp byte [edi + 0x24], 0
je 0x47bf2c
cmp dword [edi + 0x20], 5
jne 0x47bf2c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x47bf37
mov ebx, dword [edi + 0x18]
jmp 0x47bf39
xor ebx, ebx
push esi
call fcn.00472348
pop ecx
jmp 0x47bfa5
test ecx, ecx
jg 0x47bf0e
jl 0x47bf4c
test eax, eax
jae 0x47bf0e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b056
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47bf6c
cmp byte [edi + 0x1c], 0
je 0x47bf0e
jmp 0x47bf9d
push ebx
call fcn.004767e2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47bf0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47bfa5
cmp byte [edi + 0x1c], 0
je 0x47bfa2
mov ebx, dword [edi + 0x18]
jmp 0x47bfa5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046b056
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47e559
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49d094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x47e59c
call fcn.0046323f
mov dword [eax], 0xf
call fcn.00463252
mov dword [eax], 0xd
call fcn.0045e446
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004582a0
leave
ret
test eax, eax
jne 0x47e5a3
inc eax
jmp 0x47e590
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x47e58e
xor eax, eax
cmp ecx, 1
setne al
jmp 0x47e590

Function at 0x480420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48044d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48044d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xdd9b67
Capabilities:
Encode data using xor

Disassembly:
adc edi, 4
xor ecx, ecx
test eax, eax
lea esp, [esp + 4]
je 0xdd9bc0
mov edx, 0xceba6692
movzx edx, byte [esi]
push 0x630ad3a2
xor edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x10d93a4]
shr ecx, 8
xor ecx, edx
and byte [esp], 0x98
or word [esp + 1], 0x4a04
inc esi
xor ecx, 0x4a828f25
rol dword [esp], 0x31
dec eax
not dword [esp]
lea esp, [esp + 4]
jne 0xdd9b7b
call fcn.01169df3
cmpsd dword [esi], dword es:[edi]
mov al, 0x8c
cdq
mov ebx, 0x26ee070c
add bh, al
mov dl, 0x72
cmp byte [edi], dh
add dword [ebp + 0x7a73faf4], 0x85696fb1
shl dword [ebx], 0x56
outsd dx, dword [esi]
lea edx, [eax - 0x5df745c0]
and byte ds:[edx + 0x30b7b199], ch
sbb al, dh
dec eax
out dx, eax
test dword [ebp - 0x15], ebp
mov al, byte [0x1b78c612]
fstp dword [ecx]
invalid
Function at 0xe057f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [ebp + edi*2 - 0x4a2f3e6a]
mov dword [esp + edi*2 - 0x4a2f3e6a], edi
mov edi, dword [edi + ebp - 0x25179f31]
add ebp, 8
add byte [eax], al
call fcn.00e1565d
xor ecx, dword [esi + 0x10717923]
dec ebx
push ebp
add byte [eax - 0x44], al
out dx, eax
pop edi
inc ebx
xchg edi, eax
rcr dword [ebp - 0x21], cl
outsd dx, dword [esi]
jo 0xe0580d
fild qword [edi + 0x70]
in al, 0x45
inc ebp
nop
and dword [ebx + 0x792ccb85], edi
js 0xe0589e
push edi
mov eax, 0xa705943a
add al, 0xcd
jge 0xe05825
daa
invalid
je 0xe058ce
add byte [edx - 0x64e46865], bh
daa

Function at 0xe39113
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
mov dword [esp + 4], 0x6026a318
lea esp, [esp + 8]
je 0x1152301
jmp 0x11522b6
mov eax, dword [edi]
mov ecx, 0x7b23648a
push ecx
mov ecx, dword [edi + ecx - 0x7b236486]
jmp 0x10de359
add edi, 4
xor edx, edx
jmp 0xde116e

Function at 0x10bc3a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
bt edx, ecx
mov ebp, esp
clc
mov edx, dword [ebp + 8]
sub esp, 0x114
cmp ah, 0x2b
push esi
test edx, edx
jmp 0xc4f399

Function at 0x112be10
Capabilities:
Encode data using xor

Disassembly:
push 0x400de23a
jmp 0x10fc83f
not ecx
mov dword [edi], ecx
lea esp, [esp + 4]
jmp fcn.010c478d
add edi, 4
xor ecx, ecx
test eax, eax
lea esp, [esp + 4]
je 0x112be76
push edi
movzx edi, byte [edx]
push 0x7808492b
xor edi, ecx
and edi, 0xff
not dword [esp]
sub word [esp + 2], 0xd92b
mov edi, dword [edi*4 + 0xc52f08]
shr ecx, 8
or word [esp + 1], 0xb633
xor ecx, edi
inc edx
push 0x4793d1b4
xor ecx, 0xd848310
dec eax
lea esp, [esp + 8]
jne 0x112be25
mov edi, 0x82bb022f
lea edi, [edi*2 - 0x5bf274d8]
pop edi
jmp 0xdc9ba8
Function at 0x46f05d
Capabilities:
Encode data using xor

Disassembly:
call fcn.0046f181
lea eax, [esi]
xchg esp, eax
push cs
retf
pop word [esp]
lea esp, [esp + 2]
jne 0x42211d
je 0x42213f
invalid

Function at 0x4ef587
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ebp, [eax*4]
xchg bh, cl
jmp 0x4ef685
xchg esi, edi
mov word [esp], sp
lea ecx, [ebp*4]
setge ah
mov ch, byte [esp + 1]
jmp 0x4efcce
ror eax, 0x1f
xchg ebp, esi
sub bl, ah
mov edi, dword [esp]
xchg ah, bl
mov word [esp + 1], di
jmp 0x4ef62d
xchg word [esp + 1], dx
lea ebx, [ebx + edi]
neg bh
setbe ch
add esp, 0
neg bp
jmp 0x4ef647
pop word [esp]
mov edi, ecx
xchg dword [esp], eax
lea edi, [ebp*4]
lea ecx, [ecx + ebx]
jmp 0x4ef65f
rdtsc
bsf bp, ax
lea edi, [edx + ebx]
xchg ebx, edi
bsf si, ax
call fcn.004ef746
lea edi, [edx + ebp]
mov ebx, 0xaf501288
pop ebx
push dword [esp + 4]
xchg bh, cl
mov word [esp + 2], sp
jmp 0x4ef998
mov si, dx
xchg byte [esp + 2], al
pop dword [esp]
lea esp, [esp + 4]
lea eax, [ecx*4]
jmp 0x4efaa6
pop ebx
and di, 0xde9a
rdtsc
add ecx, ebp
mov edi, 0x55719daa
mov di, word [esp]
jmp 0x4efa83
mov byte [esp], dh
push word [esp + 1]
cmc
bswap ecx
bswap eax
lea esi, reloc.mscoree.dll__CorExeMain
jmp 0x4ef9d8
mov bp, word [esp]
mov si, sp
not ax
btc ebx, ebx
call fcn.004efa62
pop dword [ecx]
xchg ecx, eax
invalid
mov dl, 0xec
lea esp, [esp + 1]
lea ebx, [eax + edx]
xchg ebx, edi
mov ax, 0xcc41
inc esi
jmp 0x4ef9fc
rdtsc
lea ecx, [ebp*4]
btc ebx, ebx
mov cl, ch
pushal
lea ebx, [edx + ebp]
jmp 0x4ef94d
mov word [esp + 3], bx
xchg word [esp + 2], dx
push word [esp + 5]
xchg cx, di
mov cl, 0x6a
cpuid
jmp 0x4efbb9
mov ax, word [esp + 3]
cld
mov ebx, 0x98f6fc4a
mov word [esp + 1], sp
shr edx, 0x1b
push word [esp + 3]
jmp 0x4efc51

Function at 0x4efa62
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x1f]
xchg byte [esp], al
mov byte [esp + 1], dh
mov word [esp + 1], dx
mov bp, word [esp + 4]
xchg dx, cx
jmp 0x4efa4b
rdtsc
mov si, bx
mov di, 0x6f89
pushal
cmc
xchg dh, al
jmp 0x4efa11
xchg word [esp + 2], cx
mov bx, 0x6f93
rdtsc
bsf si, si
jmp 0x4efa68
rdtsc
mov dl, dh
jmp 0x4efa3c
sub si, 0x1ba0
sub esp, 8
add ecx, ebp
xchg edx, eax
not esi
xchg word [esp + 0xa], bx
jmp 0x4efabb
lea esp, [esp + 0xa]
push word [esp]
push dword [esp]
xchg ebp, edx
xor ecx, esi
setno ah
jmp 0x4efb8a
mov word [esp + 5], di
bswap ebx
mov dx, word [esp + 3]
mov bh, byte [esp + 4]
rdtsc
call fcn.004efb4d
mov byte [esp], ah
mov ax, 0x87c1
mov word [esp], sp
lea ebx, [ecx*4]
jmp 0x4efc08
cld
inc edx
bsf di, ax
call fcn.004efc38
jmp 0x4efc1b
inc cx
mov esi, dword [esp]
mov bx, sp
cld
mov ebp, ecx
mov edi, 0x7a016fcc
jmp 0x4efbd0
pop bx
mov ecx, 0x34626d0a
xchg bh, cl
mov dl, dh
rcr bh, 3
btr ebp, edx
jmp 0x4efbf1
mov ebp, dword [esp + 5]
neg dh
not bh
rcr dh, 7
bsr ax, cx
mov esi, dword [esp + 5]
jmp 0x4efc82
rcr ebp, 0x1b
push word [esp + 1]
cmc
rcr ebp, 0xb
xchg bx, dx
push edx
jmp 0x4efcb3
lea ebx, [ecx - 0xbb]
xchg bh, cl
mov dword [esp], eax
inc si
btc ebx, ebx
xor dl, ch
jmp 0x4efc6c
lea ecx, [ebx*4]
call fcn.004efc96
pop ecx
invalid
Function at 0x4f299f
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov byte [esp + 0xd], ah
push dword [esp]
mov dword [esp + 7], esi
mov word [esp], sp
push edx
push dword [esp + 0xe]
jmp 0x4f2986
Function at 0x403050
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xdc
xor eax, eax
push ebx
mov dword [esp + 0x11], eax
push ebp
mov dword [esp + 0x19], eax
push esi
mov dword [esp + 0x21], eax
push edi
mov word [esp + 0x29], ax
mov ecx, 0x18
lea edi, [esp + 0x89]
mov byte [esp + 0x2b], al
mov byte [esp + 0x88], al
mov edx, dword [esp + 0xf4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
xor esi, esi
mov word [esp + 0x11], cx
xor ebx, ebx
stosb byte es:[edi], al
mov byte [esp + 0x13], cl
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], esi
push 0x28
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], bl
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x40321d
mov eax, dword [esp + 0xf0]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40321d
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4031f5
push 4
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4031f5
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031f5
lea ecx, [esp + 0x30]
push ecx
call fcn.004024c0
push esi
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004024f0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004025a0
add esp, 0x18
xor ebp, ebp
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [esp + ebp + 0x1c]
push edx
push str._02X
push eax
call fcn.0040357e
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x88]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x403180
mov ecx, dword [esp + 0xf4]
lea eax, [esp + 0x88]
push 0x28
push eax
push ecx
call fcn.00403480
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40320e
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret
Function at 0x4023d0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor edi, edi
push 1
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], edi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4050c4
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40242e
push 0x4050c4
jmp 0x402462
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4050ec
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40246b
push 0x4050ec
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::TrimRight
mov dword [esp + 0x14], edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], 3
mov word [esp + 0x24], 0x14
mov eax, dword [edx - 8]
lea esi, [eax + 2]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
push ebp
neg esi
sbb esi, esi
inc esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4010c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b32b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00401000
mov eax, dword [0x411310]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x40c1e8
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 5
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
je 0x40112a
push 1
call fcn.00404ae1
push ebx
push ebx
mov dword [0x411310], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push ebx
push ebx
call fcn.00403510
add esp, 0x10
push 0x401ad0
call fcn.004012a0
push eax
mov ecx, edi
call fcn.00401040
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x34], eax
mov dword [esi], fcn.004012d0
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x3c], eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402edd
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
inc eax
push eax
mov eax, dword [ebp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x402f10
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
ret

Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402fcd
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403002
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
ret

Function at 0x403200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], 0
push 0x30
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
push str.62a1a0b2b5c7ddbd0106243949
call fcn.00403660
add esp, 0xc
lea ecx, [ebp - 0x30c]
lea edx, [ebp - 0x208]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x30
push eax
push str.64c1b9dcefb8fd1ae5eb4d12587a76
call fcn.00403660
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x30c]
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403e16
mov edi, dword [eax + 0xc]
push esi
mov esi, 1
cmp dword [edi], 0
je 0x403da4
lea eax, [edi + 4]
mov ecx, dword [eax]
inc esi
add eax, 4
test ecx, ecx
jne 0x403d9a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec esi
xor edx, edx
div esi
pop esi
mov edx, dword [edi + edx*4]
mov edx, dword [edx]
cmp dl, 0xc0
je 0x403e16
cmp dl, 0x7f
je 0x403e16
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x20]
push 0x40e99c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x10]
dec edx
cmp eax, edx
jge 0x403e16
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403e20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret